package com.dream.service.impl;

import com.dream.dao.VisitInformationDao;
import com.dream.dao.impl.VisitInformationDaoImpl;
import com.dream.pojo.VisitInformation;
import com.dream.service.VisitInformationService;

import java.util.List;

public class VisitInformationServiceImpl implements VisitInformationService {
    VisitInformationDao visitInformationDao = new VisitInformationDaoImpl();

    @Override
    public long totalCount(String stuName, Long dormitoryId) {
        return visitInformationDao.totalCount(stuName,dormitoryId);
    }

    @Override
    public List<VisitInformation> list(String stuName, Long dormitoryId, long pageIndex, long pageSize) {
        return visitInformationDao.list(stuName,dormitoryId,pageIndex,pageSize);
    }
}
